package com.gress.shop.service;

import com.gress.shop.bo.MemberRoleRelation;
import com.gress.shop.bo.Role;
import com.gress.shop.bo.RoleActionRelation;

import java.util.List;

/**
 * Created xiongwen with 2018/4/12 10:39
 * Description: 职级
 */
public interface IRoleService {

    Role queryByMemberId(String memberId);

    Role queryByEmail(String email);

    void saveRole(Role role);

    void updateMemberRole(String email, String roleId);

    void saveMemberRole(MemberRoleRelation relation);

    void deleteRoleById(String roleId);

    List<Role> queryAllRoles();

    List<MemberRoleRelation> queryMemberRoles();

    List<RoleActionRelation> queryActionRoles();

    void addRole(Role role, List<String> strings);

    Role queryByRoleId(String roleId);

    List<RoleActionRelation> queryRelationByRoleId(String roleId);

    void deleteRoleAction(List<String> idList);

    void updateRoleAction(List<String> actionId, Role roleId);
}
